package com.lheia.process.zhejiang.quzhou

import com.lheia.jcb.spider.IpeSpiderData
import com.lheia.tool.ToolString
import org.jsoup.Jsoup

class SpiderSZFPTest {
    static main(def args){
//        def url = "http://www.zjzwfw.gov.cn/zjzw/punish/frontpunish/punish_list.do?deptId=001008013008018&webid=71&xzcf_code=&realid=0.1442518641303263&_=1557282191193"
//        def doc = Jsoup.connect(url).get()
//        println ToolString.matchList(doc.select("li:contains(条记录)").text(),"\\d+")?.get(0)

        def url = "http://www.zjzwfw.gov.cn/zjzw/punish/frontpunish/detail.do?unid=330801181701042000000&webid=71&guid="
        def doc = Jsoup.connect(url).get()

        println ToolString.matchList(doc.select("li:contains(条记录)").text(),"\\d+")?.get(0)
    }
}
